/*
 * @Description: 
 * @version: 
 * @Author: King
 * @Date: 2022-04-01 17:04:56
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-04-01 17:16:07
 */
// 引入相应模块，暴露出store，供vue注册后全局使用
import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
// 由于在actions.js中导出的是一个一个的函数所以要用通配符来接收并且命名为actions
import * as actions from './actions'
// 由于在mutations.js中导出的是一个一个的函数所以要用通配符来接收并且命名为mutations
import * as mutations from './mutations'
Vue.use(Vuex)

const store = new Vuex.Store({
  state,
  actions,
  mutations
})
export default store